home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / netpq.zip / SORT.C < prev   
Text File  |  1992-02-24  |  324b  |  22 lines

  1. #include <stdio.h>
  2.  
  3. #include "nos.h"
  4. #include "noslib.h"
  5. #include "netpq.h"
  6.  
  7. comparestring (char *s1, char *s2)
  8. {
  9.     return (strcmp (s1, s2));
  10. }
  11.  
  12.  
  13. compareDWORD (DWORD *d1, DWORD *d2)
  14. {
  15.     if (*d1 < *d2)
  16.         return (-1);
  17.     else if (*d1 == *d2)
  18.         return (0);
  19.     else
  20.         return (1);
  21. }
  22.